<template>
	<view>
		<text></text>
		<text v-if="flag"></text>
		<button type="primary" @click="checkText">切换</button>
		<text :tltle="title" :name="name"></text>
		<text-a></text-a>
		<test-b></test-b>
		<uni-calendar
			:insert="true"
			:lunar="true"
			:start-date="'children019-3-2'"
			:end-date="'2019-5-20'"
			@change="change"
			>
		</uni-calendar>
	</view>
</template>

<script>
	import test from'../../../components/test.vue'
	import testA from'../../../components/a.vue'
	import testB from'../../../components/b.vue'
	import uniCalendar from '@/components/uni-calendar/uni-calendar.vue'
	export default {
		data(){
			return {
				title: 'Hello',
				name:'lilinlgi',
				num: 0.,
				flag: true,
				}
			},
			components:{
				test,
				"test-a": testA,
				"test-b": testB,
				uniCalendar
			},
			methods:{
				checkTest(){
					this.flag = !this.flag
				},
				getNum(num){
					console.log(num)
					this.num = num
					
				}
			},
		}
</script>

<style>
</style>